universal-slider.js ➔ ???   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 12
rs 9.4285
c 1
b 0
f 0
cc 2
nc 2
nop 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A universal-slider.js ➔ ... ➔ ??? 0 3 1
1
import {utils} from './core/utils';
2
import Slider from './blocks/slider/modules/Slider';
3
4
document.addEventListener("DOMContentLoaded", () => {
5
    let elements = document.querySelectorAll('*[data-module="slider"]');
6
    global.utils = utils;
7
8
    if(elements.length > 0) {
9
        window.sliders = [];
10
11
        [].forEach.call(elements, (element) => {
12
            window.sliders.push(new Slider(element));
13
        });
14
    }
15
});